﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AccountInfo.aspx.cs" Inherits="Web.Views.AgentManager.AccountInfo" %>

<%@ Register src="../Controls/MessageBarControl.ascx" tagname="MessageBarControl" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>帐户信息</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:DetailsView ID="dtvAgentInfo" runat="server"  Width="450px" AutoGenerateRows="False" 
            DataSourceID="odsAgentInfo" DataKeyNames="AgentID" BackColor="White" 
            BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="2" 
            onitemupdated="dtvAgentInfo_ItemUpdated" style="margin-top: 8px">
            <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
            <RowStyle BackColor="White" ForeColor="#330099" />
            <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
            <Fields>
              
                <asp:BoundField DataField="AgentID" HeaderText="AgentID" ReadOnly="True" 
                    SortExpression="AgentID" Visible="False" />
                <asp:BoundField DataField="LoginName" HeaderText="登录名" ReadOnly="True" 
                    SortExpression="LoginName" />
                <asp:BoundField DataField="AgentName" HeaderText="销售点名称" ReadOnly="True" 
                    SortExpression="AgentName" />
                <asp:BoundField DataField="City" HeaderText="城市" ReadOnly="True" 
                    SortExpression="City" />
                <asp:BoundField DataField="Linkman" HeaderText="联系人" 
                    ControlStyle-Width="250px" >
<ControlStyle Width="250px"></ControlStyle>
                </asp:BoundField>
                <asp:BoundField DataField="Address" HeaderText="地址" SortExpression="Address" >
                <ControlStyle Width="250px"></ControlStyle>
                </asp:BoundField>
                <asp:BoundField DataField="Nearby" HeaderText="地图地址" SortExpression="Nearby"  
                    ControlStyle-Width="250px" >
<ControlStyle Width="250px"></ControlStyle>
                </asp:BoundField>
                <asp:BoundField DataField="Telphone" HeaderText="电话" 
                    SortExpression="Telphone" />
                    <asp:BoundField DataField="WorkHours" HeaderText="工作时间" 
                    SortExpression="WorkHours" />
                <asp:CommandField CancelText="取消" EditText="修改" ShowEditButton="True" 
                    ShowHeader="True" UpdateText="更新" />
              
            </Fields>
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
            <EditRowStyle BackColor="#0e9af0" Font-Bold="True" ForeColor="#663399" />
        </asp:DetailsView>
        
        <asp:Label ID="lblLoginName" runat="server" Visible="False"></asp:Label>
        
        <asp:ObjectDataSource ID="odsAgentInfo" runat="server" 
            DataObjectTypeName="Easydp.Models.Entities.TT_Agent" SelectMethod="GetByLoginName" 
            TypeName="Easydp.Controllers.AgentController" UpdateMethod="Update">
            <SelectParameters>
                <asp:ControlParameter ControlID="lblLoginName" Name="loginame" 
                    PropertyName="Text" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
   
        <uc1:MessageBarControl ID="AgentMessageBar" runat="server" />
   
    </div>
    </form>
</body>
</html>
